/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tamagoshi;

import javax.swing.*;
import java.awt.*;
/**
 *
 * @author Kalei
 */
public class TamaPanelGameMars extends JPanel{
    
    private Image fond;
    private Image fond_center;
                   
    public TamaPanelGameMars()
    {
        MediaTracker mt = new MediaTracker(this);
        Toolkit kit = Toolkit.getDefaultToolkit();
        
        fond = kit.getImage("src/tama_mars.png");
        fond_center = kit.getImage("src/tama_move.gif");
        try{    
             mt.addImage(fond,0);
             mt.addImage(fond_center,0);
             mt.waitForID(0);
        }catch(Exception e){}    
    }
   
    @Override
    public void paintComponent(Graphics g) 
    {
        //Image de fond.
        g.drawImage(fond, 0, 0, this);
        
        //Tamagoshi simple move
        g.drawImage(fond_center, 63, 96, this);
    }
    
    

    

}
